package configs;

import server.ServerProperties;

public class Game {
    public static String 服务端名称;
    public static int 版本;
    public static String 初始ip;
    public static short 服务端端口;
    public static short 商城端口;
    public static int 频道端口;
    public static int 频道个数;
    public static String 服务端名字;
    public static String 进入游戏小窗口气泡;
    public static String 黄色滚动广告;
    public static String 数据库名字;
    public static String 数据库IP;
    public static String 数据库端口;
    public static String 数据库用户名;
    public static String 数据库密码;
    public static int 经验倍率;
    public static int 金币爆率;
    public static int 物品爆率;
    public static Boolean 双倍频道开关;
    public static int 双倍频道;
    public static int 服务端启动中;

    static {
        服务端名称 = "cc冒险岛-v079开源秋季版";
        版本 = 11;
        初始ip = ServerProperties.getProperty("cc.IPAddress");
        服务端端口 = Short.parseShort(ServerProperties.getProperty("cc.LoginPort"));
        商城端口 = Short.parseShort(ServerProperties.getProperty("cc.CashPort"));
        频道端口 = Integer.parseInt(ServerProperties.getProperty("cc.ChannelPort"));
        频道个数 = Integer.parseInt(ServerProperties.getProperty("cc.Channel.count"));
        服务端名字 = ServerProperties.getProperty("cc.serverName", "");
        进入游戏小窗口气泡 = ServerProperties.getProperty("cc.eventMessage", "");
        黄色滚动广告 = ServerProperties.getProperty("cc.serverMessage", "");
        数据库名字 = ServerProperties.getProperty("cc.DBName");
        数据库IP = ServerProperties.getProperty("cc.SQLAddress");
        数据库端口 = ServerProperties.getProperty("cc.SQLPort");
        数据库用户名 = ServerProperties.getProperty("cc.SQLUser");
        数据库密码 = ServerProperties.getProperty("cc.SQLPassword");
        经验倍率 = Integer.parseInt(ServerProperties.getProperty("cc.expRate"));
        金币爆率 = Integer.parseInt(ServerProperties.getProperty("cc.mesoRate"));
        物品爆率 = Integer.parseInt(ServerProperties.getProperty("cc.dropRate"));
        双倍频道开关 = Boolean.parseBoolean(ServerProperties.getProperty("cc.DD"));
        双倍频道 = Integer.parseInt(ServerProperties.getProperty("cc.DDChannel"));
        服务端启动中 = 0;
    }
}
